package gaboli.common.xml;

import javax.xml.bind.annotation.XmlElement;

/**
 * Base class that serves as the entry point for @link ElementMapperAdapter. Code adapted from sources found at
 * http://stackoverflow.com/questions/3941479/jaxb-how-to-marshall-map-into-keyvalue-key
 * and at http://www.developpez.net/forums/d972324/java/general-java/xml/hashmap-jaxb/.
 * @author C. Burrell (deltafront@gmail.com)
 */
public class ElementMapper
{
    @XmlElement
    public Object key;
    @XmlElement
    public Object value;

    /**
     * @since 1.0
     */
    ElementMapper()
    {}
    /**
     * Default constructor.
     * @param key Key for map entry.
     * @param value Value for map entry.
     */
    public ElementMapper( Object key, Object value )
    {
        this.key = key;
        this.value = value;
    }
}
